<template>
  <div class="app-container">
    <h1>未确定的订单</h1>
    <unconfirmed />
    <h1>以确定的订单</h1>
    <confirm />
  </div>
</template>

<script>
import socket from '@/utils/socketOrder'
import { mapState } from 'vuex'
import confirm from './components/confirm.vue'
import unconfirmed from './components/unconfirmed.vue'
export default {
  components: {
    confirm, unconfirmed
  },
  data() {
    return {
      activeNames: '',
      size: ''
    }
  },
  computed: {
    ...mapState({
      order: state => state.order.order,
      notification: state => state.order.notification
    })
  },
  methods: {
    handle() {
      console.log(1)
      socket.emit('order', this.value)
    }
  }
}
</script>

<style lang="scss" scoped>

</style>
